package com.stadium.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * 比赛事件字典
 *
 * @author wsl
 * @email
 * @date 2021-06-12 18:11:21
 */
@Data
@ApiModel(value = "比赛事件字典")
public class RecordDict implements Serializable {
    private static final long serialVersionUID = 1L;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "id")
    private String id;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "赛事分类")
    private String categoryId;

    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "分类 0：个人 1：队伍")
    private String belong;

    @Length(min = 0, max = 20)
    @ApiModelProperty(value = "事件code")
    private String code;

    @Length(min = 0, max = 1000)
    @ApiModelProperty(value = "事件内容")
    private String content;

    @Length(min = 0, max = 0)
    @ApiModelProperty(value = "分值（不涉及分值默认为0）")
    private Integer score;

    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "状态码（0：正常，1：异常）")
    private String statusCode;

    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "删除码（0：正常 1：删除）")
    private String deleteCode;

    @Length(min = 0, max = 255)
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "更新人")
    private String updateUser;

}
